package com.hpli.infrastructure.persistent.po;

import java.util.Date;

/**
 * Table: rule_tree_node_line
 */
public class RuleTreeNodeLine {
    /**
     * Column: id
     * Type: BIGINT UNSIGNED
     * Remark: 自增ID
     */
    private Long id;

    /**
     * Column: tree_id
     * Type: VARCHAR(32)
     * Remark: 规则树ID
     */
    private String treeId;

    /**
     * Column: rule_node_from
     * Type: VARCHAR(32)
     * Remark: 规则Key节点 From
     */
    private String ruleNodeFrom;

    /**
     * Column: rule_node_to
     * Type: VARCHAR(32)
     * Remark: 规则Key节点 To
     */
    private String ruleNodeTo;

    /**
     * Column: rule_limit_type
     * Type: VARCHAR(8)
     * Remark: 限定类型；1:=;2:>;3:<;4:>=;5<=;6:enum[枚举范围];
     */
    private String ruleLimitType;

    /**
     * Column: rule_limit_value
     * Type: VARCHAR(32)
     * Remark: 限定值（到下个节点）
     */
    private String ruleLimitValue;

    /**
     * Column: create_time
     * Type: DATETIME
     * Default value: CURRENT_TIMESTAMP
     * Remark: 创建时间
     */
    private Date createTime;

    /**
     * Column: update_time
     * Type: DATETIME
     * Default value: CURRENT_TIMESTAMP
     * Remark: 更新时间
     */
    private Date updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTreeId() {
        return treeId;
    }

    public void setTreeId(String treeId) {
        this.treeId = treeId == null ? null : treeId.trim();
    }

    public String getRuleNodeFrom() {
        return ruleNodeFrom;
    }

    public void setRuleNodeFrom(String ruleNodeFrom) {
        this.ruleNodeFrom = ruleNodeFrom == null ? null : ruleNodeFrom.trim();
    }

    public String getRuleNodeTo() {
        return ruleNodeTo;
    }

    public void setRuleNodeTo(String ruleNodeTo) {
        this.ruleNodeTo = ruleNodeTo == null ? null : ruleNodeTo.trim();
    }

    public String getRuleLimitType() {
        return ruleLimitType;
    }

    public void setRuleLimitType(String ruleLimitType) {
        this.ruleLimitType = ruleLimitType == null ? null : ruleLimitType.trim();
    }

    public String getRuleLimitValue() {
        return ruleLimitValue;
    }

    public void setRuleLimitValue(String ruleLimitValue) {
        this.ruleLimitValue = ruleLimitValue == null ? null : ruleLimitValue.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}